home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: ODF and printing (II)
- Sent: 8/9/96 11:39 AM
- Received: 8/9/96 11:51 AM
- From: Oliver Breidenbach, oliver@boinx.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >> So I asumed that FW_CRectShape::RenderRect
- >>would take care of the transformation for different resolution
- >>outputs.
-
- >This is not done in the FW_CRectShape. ODF has an object call
- >FW_CMapping you can attach to a Graphic Context (in this case a
- >FW_CViewContext). You can set your mapping object to, for example, draw
- >in pixel (what ever the resolution). When no mapping object is attached
- >to a graphic context 72 dpi is used. To check is your are printing or
- >drawing on the screen check the ODCanvas associated with the ODFacet.
- >Use ODCanvas::IsDynamic. If it returns false it means you are printing
- >(We should really add a call to FW_CGraphicContext to do that). You can
- >then set your mapping to take full advantage of the printer resolution.
- >
- >I hope I am answering your question.
- >
-
- Henri,
-
- you are surely trying. :-) Thanks a lot.
-
- However, I assigned a new FW_CMapping object to the FW_CViewContext with
- the kFWCentimeters setting. It now uses centimeters as scale. But the
- printing still is in 72 dpi resolution as far as the positioning of objects
- is concerned. Are you sure that this is supposed to work correctly in R 1?
-
- I see from the documentation that clearly my problem has been thought
- about. The implementation however does not seem obvious. I will keep
- trying. I still do not see where I can influence the output resolution. Do
- I have to change my logical coordinate system depending on the device
- coordinate system? Do I have to set the device coordinate system for other
- resolutions besides 72 dpi manually? How needs my ::Draw method act
- differently for the printer?
-
- In addition I noticed that the documentation for FW_CViewContext and other
- subclasses of FW_CGraphicContext are missing from the R1 release on the
- OpenDoc DR 5 CD both in Acrobat and in QuickView format.
-
- Cheers,
-
- Oliver.
-
-
-
-
-